package com.wgy.day8;

/**
 * Created by pc on 2020/11/4 22:58
 * Description: Demo
 */
public class Demo04OverloadPrint {
    public static void main(String[] args) {
        myPrint(100);//int
        myPrint("hello");//String
        myPrint('中');//char
        myPrint(12.45);//float


    }

    public static void myPrint() {
        System.out.println();
    }

    public static void myPrint(int a) {
        System.out.println(a);
    }

    public static void myPrint(short a) {
        System.out.println(a);
    }

    public static void myPrint(byte a) {
        System.out.println(a);
    }

    public static void myPrint(long a) {
        System.out.println(a);
    }

    public static void myPrint(float a) {
        System.out.println(a);
    }

    public static void myPrint(double a) {
        System.out.println(a);
    }

    public static void myPrint(boolean a) {
        System.out.println(a);
    }

    public static void myPrint(char zifu1) {
        System.out.println(zifu1);
    }

    public static void myPrint(String str) {
        System.out.println(str);
    }

}
